package com.situ.mvc.service;

import com.situ.mvc.common.ServerResponse;
import com.situ.mvc.entity.Department;
import com.situ.mvc.entity.User;

public interface IUserService {

	ServerResponse login(String name, String password);

	ServerResponse findList(Integer page,Integer limit);

	ServerResponse getSelect();

	ServerResponse addUser(User user);

	ServerResponse deleteAll(String ids);

	ServerResponse deleteById(Integer id);

	User toUpdate(Integer id);

	ServerResponse getDepartmentList();

	ServerResponse deleteByDepartmentId(Integer id);

	Department getUpdateDepartmentPage(Integer id);

	ServerResponse userUpdate(User user);

}
